package com.xiejr.api.interfaces.oss;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author mobai
 * @since 2021/2/16 15:35
 */
@FeignClient("oss")
public interface OssService {

    @PostMapping("/upload")
    void upload(@RequestParam("key") String key);


    @GetMapping("/download")
    void download(@RequestParam("key") String key);


}
